/**
 * PropertyRader.java
 */
package com.vcsoft.emailresponder.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * @author bhosalevishal@gmail.com
 * @version 05-Sept-2012
 */
public class PropertyRader {
	
	private static Properties properties;

	/**
	 * public constructor
	 */
	public PropertyRader(){
	}
	
	// static block to load properties file into memory
	static{
		properties = new Properties();
		try {
		    properties.load(new FileInputStream("src/main/resources/emailresponder.properies"));
		} catch (IOException e) {
		}
	}
	
	public static String getConfigFile(){
		return properties.get("config_file").toString();
	}
}
